#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
    int n = 0;
    scanf("%d", &n);
    int x[n];
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &x[i]);
    }

    for (int i = 0; i < n; i++)
    {
        for (int j = i + 1; j < n; j++)
        {
            if (x[i] == x[j])
            {
                x[j] = -1;
            }
        }
    }
    for (int i = 0; i < n; i++)
    {
        if (x[i] != -1)
        {
            printf("%d ", x[i]);
        }
    }
    return 0;
}